package cn.iocoder.yudao.module.biz.controller.admin.zmdeduction.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 扣款报新增/修改 Request VO")
@Data
public class ZmDeductionSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16737")
    private Long id;

    @Schema(description = "分格式", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "分格式不能为空")
    private String subCommpany;

    @Schema(description = "服务id", requiredMode = Schema.RequiredMode.REQUIRED, example = "32227")
    @NotEmpty(message = "服务id不能为空")
    private String serviceId;

    @Schema(description = "订单号码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "订单号码不能为空")
    private String orderNo;

    @Schema(description = "业务号码")
    private String bizCode;

    @Schema(description = "业务流水号")
    private String bizStreamCode;

    @Schema(description = "用户名", example = "芋艿")
    private String userName;

    @Schema(description = "交易类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "交易类型不能为空")
    private Integer tradeType;

    @Schema(description = "交易金额")
    private String tradeAmt;

    @Schema(description = "授权金额")
    private String sqAmt;

    @Schema(description = "交易订单号")
    private String tradeOrderNo;

    @Schema(description = "下单时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "下单时间不能为空")
    private LocalDateTime orderTime;

    @Schema(description = "扣款时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "扣款时间不能为空")
    private LocalDateTime deductionTime;

    @Schema(description = "扣款成功时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "扣款成功时间不能为空")
    private LocalDateTime deductionSuccTime;

    @Schema(description = "订单状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "订单状态不能为空")
    private Integer orderStatus;

    @Schema(description = "扣款失败说明", example = "随便")
    private String deductionFailMemo;

}